package com.mentaleye.service;

import java.util.List;

import com.mentaleye.bean.PermissionsBean;
import com.mentaleye.dal.model.Permissions;
import com.mentaleye.dal.model.PermissionsExample;
import com.mentaleye.util.CommonPage;

public interface PermissionsService {
	
	/**
	 * 编辑权限
	 * @param permissions 传入要班级的权限对象
	 * @param add  判断是否是增加
	 * @return
	 */
	boolean  editPermissions(PermissionsBean permissionsBean,boolean add);
	
	/**
	 * 删除权限
	 * @param ids  根据Id删除权限
	 * @return
	 */
	boolean deletePermissions(List<Integer> permissionsId);
	
	void queryPermissions(CommonPage commonPage);
	
	List<Permissions> queryPermissions(PermissionsExample example);
	
	public PermissionsBean queryPermissions(Integer permissionsId);


	public List<PermissionsBean> queryPermissions(int parentpermissionsId,String permissionsName);


	public boolean deletePermissions(Integer parentpermissionsId);
	
	public List<PermissionsBean> queryPermissions(List<Integer> permissionsId);
	
	public PermissionsBean queryPermissionsByparentpermissionsId(Integer parentpermissionsId);
}
